package com.ikas.ai.server.module.data.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ikas.ai.server.module.data.dorisDao.DorisYcDataDao;
import com.ikas.ai.server.module.data.model.doris.DorisYcData;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author cuihaodong
 */
@Service
@Slf4j
public class DorisYcDataService extends ServiceImpl<DorisYcDataDao, DorisYcData> {
    public DorisYcData getByMeteId(Long meteId) {
        LambdaQueryWrapper<DorisYcData> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(DorisYcData::getMeteId, meteId);
        return this.getOne(queryWrapper);
    }
}
